<script setup>
import {inject} from "vue";

const themeColor = inject('theme-color');
const count = inject('count');
const changeCount = inject('changeCount');
const clickFn = () => {
    changeCount(1000)
}
</script>

<template>
    <div>
        <h3>I am Bottom. - {{ themeColor }} - {{ count }}</h3>
        <button @click="clickFn">更新count</button>
    </div>
</template>